{% block content %}

  {% if form.errors %}
    <p class="error">Sorry, that's not a valid username or password</p>
  {% endif %}

  <form action='/login/' method='post'>
    <table>
    <tr>
      <td><label for="username">User name:</label></td>
      <td><input type="text" name="username" value="" id="username"></td>
    </tr>
    <tr>
      <td><label for="password">Password:</label></td>
      <td><input type="password" name="password" value="" id="password"></td>
    </tr>
    <tr>
      <td colspan=2>
	<input type="submit" value="login" />
	<input type="hidden" name="next" value="{{ next }}" />
      </td>
    </tr>
    </table>
  </form>

{% endblock %}
